<template>
  <view class="success-container">
    <view class="icon-wrapper">
      <image src="@/static/success-check.png" class="success-icon" mode="aspectFit" />
    </view>
    <text class="success-title">注册成功</text>
    <text class="success-subtitle">我们将尽快完成审核并与您联系，请耐心等待。</text>
    <button class="go-login-btn" @click="goToLogin">返回登录</button>
  </view>
</template>

<script>
export default {
  methods: {
    goToLogin() {
      uni.redirectTo({ url: '/pages/login' })
    }
  }
}
</script>

<style scoped>
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100rpx 40rpx;
  background-color: #fff;
  height: 100vh;
}

.icon-wrapper {
  width: 200rpx;
  height: 200rpx;
  margin-bottom: 40rpx;
}

.success-icon {
  width: 100%;
  height: 100%;
}

.success-title {
  font-size: 40rpx;
  font-weight: bold;
  color: #2ecc71;
  margin-bottom: 20rpx;
}

.success-subtitle {
  font-size: 28rpx;
  color: #666;
  text-align: center;
  margin-bottom: 80rpx;
  padding: 0 20rpx;
}

.go-login-btn {
  background-color: #2ecc71;
  color: white;
  font-size: 30rpx;
  padding: 20rpx 60rpx;
  border-radius: 50rpx;
}
</style>
